import request from '@/utils/request'

// 查询通知公告表-app列表
export function listCmsNotice(query) {
  return request({
    url: '/demo/cmsNotice/list',
    method: 'get',
    params: query
  })
}

// 查询通知公告表-app详细
export function getCmsNotice(id) {
  return request({
    url: '/demo/cmsNotice/' + id,
    method: 'get'
  })
}

// 新增通知公告表-app
export function addCmsNotice(data) {
  return request({
    url: '/demo/cmsNotice',
    method: 'post',
    data: data
  })
}

// 修改通知公告表-app
export function updateCmsNotice(data) {
  return request({
    url: '/demo/cmsNotice',
    method: 'put',
    data: data
  })
}

// 删除通知公告表-app
export function delCmsNotice(id) {
  return request({
    url: '/demo/cmsNotice/' + id,
    method: 'delete'
  })
}

// 导出通知公告表-app
export function exportCmsNotice(query) {
  return request({
    url: '/demo/cmsNotice/export',
    method: 'get',
    params: query
  })
}